import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang3.*;
import org.apache.log4j.Logger;

public class DeviceJoiner {
    private static final Logger logger = Logger.getLogger(DeviceJoiner.class);

    public static void main(String args[]){
        logger.info("The program was launched");
        List<String> strings = Arrays.asList("one","two","three");
        DeviceJoiner deviceJoiner = new DeviceJoiner();
        logger.debug("Starting the joiner method");
        String stringAfterJoin = deviceJoiner.toCamelCaseJoinedStrings(strings);
        logger.debug("printing method");
        System.out.print(stringAfterJoin);
    }

    String toCamelCaseJoinedStrings(List<String> strings) {
        StringBuilder sb = new StringBuilder();
        for(String string : strings) {
            logger.debug("StringBuilder object was created");
            string = StringUtils.capitalize(string);
            sb.append(string);
        }
        return sb.toString();
    }
}
